<?php
namespace app\api\model;

class TokenModel extends BaseModel
{
    protected $table = 'jc_token';
    protected $rule = [
        'id' => '',
    ];
    protected $msg = [
        'id' => '',
    ];
    public function getToken($token = ''){
        $token = $this->where(array("token"=>$token))->find();
        if($token){
            return $token['uid'];
        }else{
            return false;
        }
    }
}
?>